# C++ objects

CC=g++
#CFLAGS=-O0 -c -g -Wno-deprecated -I/home/lshenzhi/BXR/BXRtrain/src/tclap-1.0.5/include -I../src -DUSE_GCC -DSYMBOLIC
CFLAGS=-O0 -c -g -Wno-deprecated -I../src/tclap-1.0.5/include -I../src -I C:\cygwin\usr\include -DUSE_GCC -DSYMBOLIC
LDFLAGS=-G
SOURCES=DataFactory.cpp Matrix.cpp StrataSplit.cpp Milliseconds.cpp OutputFormat.cpp Likelihood.cpp asa239.cpp PolyZO.cpp QNOpt.cpp CommandLine.cpp
CSOURCES=blmvm-1.1ez.c
OBJECTS=blmvm-1.1ez.o DataFactory.o Matrix.o StrataSplit.o Milliseconds.o OutputFormat.o Likelihood.o asa239.o PolyZO.o QNOpt.o CommandLine.o

EXECUTABLE=paramReg.exe

all: $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS)
	$(CC) -static $(OBJECTS) -o $@ 

%.o: ../src/%.cpp
	$(CC) $(CFLAGS) $< 


%.o: ../src/%.c
	$(CC) -x c $(CFLAGS) $< 

clean:
	rm *.o
	rm paramReg 

tar:
	tar cvf paramReg.tar *.cpp *.h *.c Makefile
	gzip -9 paramReg.tar

